package utils

import (
	"crypto/md5"
	"fmt"
)

func Md5(bts []byte) string {
	bs := md5.Sum(bts)
	return fmt.Sprintf("%x", bs)
}

func Md5Str(str string) string {
	return Md5([]byte(str))
}
